package com.toy.core.security.userdetails;

import com.toy.core.security.exception.AuthenticationException;

public interface UserDetailsService {
	
	UserDetail getByUsername(String username) throws AuthenticationException;
	
	UserDetail validate(String username,String password) throws AuthenticationException;
}
